package com.rzj.sys_lab_assistant.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: sys_lab_assistant
 * @description: 错误页面网址配置
 * @author: 作者
 * @create: 2021-07-03 19:23
 */
@Controller
@RequestMapping("/errorPage")
public class ErrorPageController {

    @RequestMapping("/{code}")
    public String toErrorPage(@PathVariable int code) {
        return "error/" + code;
    }

}
